Glossary Item Box
Visual studio can be used as a development environment for projects using .netCHARTING. Below find step by step instructions for using the samples within an ASP.NET web application. Of course, you could use the sample directly just by running them through a web browser and edit the calling page directly in Visual studio instead which would require no additional setup outside of the regular install.
Installation Instructions:
![]() |
Copying the dotnetCHARTING.xml file to your bin folder will enable intellisense in visual studio. |
Common Problems and Resolutions:
When I start the WebApplication from Visual Studio I get Empty page.
Cause: The database folder does not exist in you project folder.
When I start the WebApplication from Visual Studio I get "CreateControl: generic error occurred in GDI+".
Cause: the Temp folder does not exist or does not have Write permissions.
Error in reading Database
Cause: ConnectionString property is not pointing to right path for the database.
When I drag and drop Chart control from Toolbox to Form , I get "error in CreateChildControl"
Solution: Add a reference to dotnetcharting.dll under the References node in Solution Explorer.
I do not see the Chart Control in Toolbox.
Solution: Select Customize Toolbox from Tools menu and then add the dll to Toolbox or right-click on the tool box > Add/Remove Items > .net tab > browse to the dll > click OK.
Design Time Support:
The Chart control can used in design time in Visual Studio .NET (or web matrix).
You can use this control in an ASP.NET web Application (not in desktop or winforms applications)
As with any other control first you should add it to the Toolbox as follows:
![]() |
Note: Design time support implements automated code generation for the chart. If you are using VS.NET and do not want the design time code to generate there is a property in the Properties Browser, GenerateCode which you can set to false. |
2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.